/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.dao;
 
import java.util.List;

import com.legendshop.dao.GenericDao;
import com.legendshop.dao.support.CriteriaQuery;
import com.legendshop.dao.support.PageSupport;
import com.legendshop.oa.constants.MailCategoryEnum;
import com.legendshop.oa.model.MailEntity;

/**
 * The Class MailEntityDao.
 */

public interface MailEntityDao extends GenericDao<MailEntity, Long>{
     
    public abstract List<MailEntity> getMailEntity(String shopName);

	public abstract MailEntity getMailEntity(Long id);
	
    public abstract void deleteMailEntity(MailEntity mailEntity);
	
	public abstract Long saveMailEntity(MailEntity mailEntity);
	
	public abstract void updateMailEntity(MailEntity mailEntity);
	
	public abstract PageSupport getMailEntity(CriteriaQuery cq);

	MailEntity getMailEntity(String receiveMail, MailCategoryEnum type);

	public abstract void clearMailCode(Long id);

	public abstract PageSupport<MailEntity> getMailEntityPage(String curPageNO);
	
 }
